import request from '@/utils/request'

// 查询设备入网记录列表
export function listNativedevice(query) {
  return request({
    url: '/business/nativedevice/list',
    method: 'get',
    params: query
  })
}

// 查询设备入网记录详细
export function getNativedevice(id) {
  return request({
    url: '/business/nativedevice/' + id,
    method: 'get'
  })
}

// 新增设备入网记录
export function addNativedevice(data) {
  return request({
    url: '/business/nativedevice',
    method: 'post',
    data: data
  })
}

// 修改设备入网记录
export function updateNativedevice(data) {
  return request({
    url: '/business/nativedevice',
    method: 'put',
    data: data
  })
}

// 删除设备入网记录
export function delNativedevice(id) {
  return request({
    url: '/business/nativedevice/' + id,
    method: 'delete'
  })
}

// 导出设备入网记录
export function exportNativedevice(query) {
  return request({
    url: '/business/nativedevice/export',
    method: 'get',
    params: query
  })
}
